package com.mdp.workflow.bus.publisher;

import com.mdp.workflow.bus.event.FlowProcinstStatusEvent;
import lombok.AllArgsConstructor;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.validation.annotation.Validated;

/**
 * {@link FlowProcinstEventPublisher} 的生产者
 *
 *@author 唛盟开源9哥
 */
@AllArgsConstructor
@Validated
public class FlowProcinstEventPublisher {

    private final ApplicationEventPublisher publisher;

    public void sendProcessInstanceResultEvent(FlowProcinstStatusEvent event) {
        publisher.publishEvent(event);
    }

}
